package com.digitalchina.trade.service;

import com.digitalchina.trade.entity.TbAccount;
import org.apache.ibatis.annotations.Param;

public interface AccountService {

    /**
     *
     * @auther xiaoming
     * @date 2021/6/13 22:13
     * @param account_name 用户名
     * @param account_pwd 密码
     * @param account_upwd 确认密码
     * @param account_cradNum 身份证
     * @param account_email 邮箱
     * @param account_phoneNum  电话
     * @return java.lang.String
     */
    String saveAccount(String account_name,String account_pwd,String account_upwd,
                       String  account_cradNum,String account_email,String account_phoneNum);


    /**
     * 登陆
     * @param tbAccount
     * @return
     */
    public TbAccount login(@Param("account") TbAccount tbAccount);

    /**
     * 更改账户余额
     * @param account
     */
    void updateAccount(@Param("account") TbAccount account);
}
